package com.yuw.oop;

public class TeacherTestDriver {

	public static void main(String[] args) {
		test03();

	}
	private static void test03() {
		//创建一个Teacher的实例对象
		Teacher tea0= new Teacher("小明",20,"男","历史");
		//调用变长参数的方法
		tea0.doTeaching("天津西青","一中","二中","三中");
		//调用数组类型的参数
		tea0.doTeaching("天津西青", 3, 21,null);
		
	}
	
	
	
	private static void test02() {
		//创建一个Teacher的实例对象
		Teacher tea0= new Teacher();
		//调用变长参数的方法
		tea0.doTeaching("天津西青","一中","二中","三中");
		//调用数组类型的参数
		tea0.doTeaching("天津西青", 3, 21,null);
		
	}
	
	private static void test01() {
		//创建一个Taecher的实例对象
		Teacher tea01 = new Teacher();
		//设置老师的名字
		tea01.setTeaName("小明");
		//设置课程名字
		tea01.setCourseName("英语");
		
		//调用课程名字
		tea01.setCourseName("化学");
		//调用老师的行为
		tea01.doTeaching("天津西青");
	}

}
